<%--
  Created by IntelliJ IDEA.
  User: Adminis
  Date: 2025/3/19
  Time: 11:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/css/bootstrap.min.css">
	<script src="${pageContext.request.contextPath}/admin/js/jquery-2.1.0.min.js"></script>
	<script src="${pageContext.request.contextPath}/admin/js/bootstrap.min.js"></script>
    <style>

       .cus-container{
           width: 1368px;
       }
       #user-add .modal-content{
       	padding: 0 20px 20px;	
       }
       #user-edit .modal-content{
       	padding: 0 20px 20px;	
       }
	   .zj,.fh{
		   color: rgba(2, 2, 2, 0.53);
		   background: rgba(244, 244, 244, 0.54);
		   box-shadow: 0 0 10px rgba(255, 255, 255, 0.62);
		   transition: box-shadow 0.4s ease; /* 添加过渡效果 */
	   }
	   .zj:hover{
		   border: 0;
		   text-decoration: none;
		   color: rgb(15, 250, 231);
		   background: rgba(255, 233, 87, 0.44);
		   box-shadow: 0 0 10px rgba(255, 233, 87, 0.63);
	   }
	   .fh:hover{
		   border: 0;
		   text-decoration: none;
		   color: rgba(123, 255, 87, 0.89);
		   background: rgba(250, 133, 15, 0.49);
		   box-shadow: 0 0 10px rgba(250, 133, 15, 0.69);
	   }
       
    </style>
</head>
<body>
	
    <div class="container cus-container">
		<!-- 添加用户模态框 -->
		<h3 class="text-center">添加用户</h3>

		<form action="${pageContext.request.contextPath}/acl_user/insertAcl_user" method="post" enctype="multipart/form-data">
			<div class="form-group">
				<label for="username">用户名：</label>
				<input type="text" class="form-control" name="username" id="username" placeholder="请输入用户名" required>
			</div>
			
			<div class="form-group">
				<label for="password">密码(若不设置密码，默认为123456)：</label>
				<input type="password" class="form-control" name="password" id="password" placeholder="请设置密码" value="123456" required>
			</div>

			<div class="form-group">
				<label for="nickname">昵称：</label>
				<input type="text" class="form-control" name="nickname" id="nickname" placeholder="请输入昵称" required>
			</div>

			<div class="form-group">
				<label for="image">头像：</label>
				<input type="file" class="form-control" name="image" id="image" required>
			</div>

			<div class="form-group">
				<label for="sid">所属商家:</label>
				<select class="form-control" name="sid" id="sid" required>
					<option value=""> -请选择所属商家- </option>
					<c:forEach items="${suppliers}" var="supplier">
						<option value="${supplier.supplier_id}">${supplier.supplier_name}</option>
					</c:forEach>
				</select>
			</div>


			<div class="text-center">
				<button type="submit" class="btn btn-primary btn-lg btn-block zj">增加</button>
				<a href="${pageContext.request.contextPath}/acl_user/selectAcl_users" class="btn btn-primary btn-lg btn-block fh">返回</a>
			</div>         
		</form>
    </div>
    
</body>
</html>